package cn.dengl.sky.springboot.common.config.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @program: springboot
 * @description: 日期工具类
 * @author: dengl
 * @create: 2018-09-18 13:58
 */
public class DataUtil {
    public  static String getNowDateStringType(String datePattern){
        Date now=new Date();
        SimpleDateFormat sdf=new SimpleDateFormat(datePattern);
        String date=sdf.format(now);
        return date;
    }

}
